package org.hzz.promotions.domain.repository;

import org.hzz.promotions.domain.entity.CouponScopeEntity;

import java.util.List;
import java.util.Optional;

/**
 * @author <a href="mailto:1193094618@qq.com">pkmer</a>
 * <br>
 * <a href = "https://gitee.com/developeros/videos-online">Code Repository</a>
 * At 2024/8/30
 * 优惠券范围仓库
 */
public interface CouponScopeRepository {
    void insertCouponScope(CouponScopeEntity entity);
    void batchInsertCouponScope(List<CouponScopeEntity> entities);

    void deleteCouponScopeByCouponId(Long couponId);

    /**
     * 根据优惠券id查询优惠券范围
     * @param _couponId 优惠券id
     */
    List<CouponScopeEntity> getCouponScopeByCouponId(Long _couponId);
}
